package com.ynet.middleground.riskmanage.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 企查查-企业工商详情信息附表-曾用名
 * </p>
 *
 * @author liulx
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rm_qichacha_aic_detail_original_name")
public class QichachaAicDetailOriginalName extends Model<QichachaAicDetailOriginalName> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 企业工商信息表主键
     */
    private Integer detailId;

    /**
     * 曾用名
     */
    private String originalName;

    /**
     * 曾用名，变更日期
     */
    private String changeDate;

    /**
     * 渠道
     */
    private String channel;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 创建者
     */
    private Integer createBy;

    /**
     * 更新时间
     */
    private LocalDateTime gmtModified;

    /**
     * 更新者
     */
    private Integer modifiedBy;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
